/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ModelInterface;

import DAOInterface.DAOConnection;
import java.sql.DatabaseMetaData;
import java.sql.ResultSet;
import java.util.ArrayList;

/**
 *
 * @author Fabian
 */
public interface IModelMainMapping {

    /**
     * 
     * @param path
     * @param dbName
     * @param user
     * @param pass
     * @param type
     * @return
     */
    public boolean setDBConnectionSource(String path, String dbName, String user, String pass, int type);

    /**
     * 
     * @param path
     * @param dbName
     * @param user
     * @param pass
     * @param type
     * @return
     */
    public boolean setDBConnectionTarget(String path, String dbName, String user, String pass, int type);

    /**
     * 
     * @return
     */
    public DAOConnection getDBConnectionTarget();

    /**
     * 
     * @return
     */
    public DAOConnection getDBConnectionSource();

    /**
     * 
     * @return
     */
    public DatabaseMetaData getModelDBs();

    /**
     * 
     * @return
     */
    public DatabaseMetaData getModelDBt();

    /**
     * 
     * @param tabla
     * @param columna
     * @return
     */
    public ResultSet getColumnSource(String tabla, String columna);
    
    /**
     * 
     * @param tabla
     * @param columnas
     * @param filtro
     * @return
     */
    public ResultSet getElement(String tabla, ArrayList columnas, String filtro);
}
